<?php


    namespace app\common\utils;


    class UtilAuthByRedis extends UtilRedisBase
    {

        protected $hash_key = '123';

        public function checkToken($sn)
        {

            return $this->hGet('ImprisonToken',$sn);
        }

        public function setToken($sn,$token)
        {

            return $this->redis->hSet('ImprisonToken',$sn,$token);
        }

        public function DelToken($sn)
        {

            return $this->redis->hDel('ImprisonToken',$sn);
        }
    }